<%# no main div %>
<h2 class="title-text" style="margin-top:0"><%= question_list.name %></h2>
<%= render partial: 'question_lists/edit', locals: { question_list: question_list } %>
<div id="div_lq">
  <% question_list.questions.sort.each do |question| %>
    <%= render partial: 'questions/edit', locals: { question: question } %>
  <% end %>
</div>

<%# link_to '添加题目', question_list_new_question_path, remote: true %>
<%= render partial: 'questions/form', locals: { question: create_question(question_list) } %>


<%= link_to '从其他题目列表复制', copy_question_list_path(question_list) %> |
<%= link_to '发布', publish_question_list_path(question_list), method: :put, confirm: '确认发布？' %>
